﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace MyWpfFramework.Models
{
    public class SubItem
    {

        /// <summary>
        /// 二级菜单
        /// </summary>
        public string SubName { get; set; }
        public string IconPath { get; set; }

        public UserControl Screen { get;private set; }
        public SubItem(string name, UserControl screen, string iconpath = null)
        {
            SubName = name;
            Screen = screen;
            IconPath = iconpath;
        }
        public SubItem(string name, string iconpath = null)
        {
            SubName = name;
            IconPath = iconpath;
        }
    }
}
